﻿//图形的基础类
//author 夏天的树人
//vesion 1.0
package org.summerTree.graphics
{
	import flash.display.Sprite;

	public class Base extends Sprite  implements IGraphics
	{
		private var LineColor:uint=0x000000;//默认是黑色
		private var Line_Thinkness:Number=1;
		public function Base()
		{

		}
		
		public function clone():*
		{
			return new Base();
		}
				
		//设置坐标
		public function move(x:Number,y:Number):void
		{
			this.x=x;
			this.y=y;
		}
		
		//设置颜色
		public function set color(value:uint):void
		{
			this.LineColor=value;
		}
		//获取颜色
		public function get color():uint
		{
			return this.LineColor;
		}
		public function get linekness():Number
		{		
			return this.Line_Thinkness;
		}
		public function set linekness(value:Number):void
		{
			
			 this.Line_Thinkness=value;
		}
				
		public function setlineStyle(thinkness:Number=1,colors:uint=0x000000):void
		{		
			this.graphics.lineStyle(thinkness,colors);
		}
		
		public function clear():void
		{		
			this.graphics.clear();
		}
		
	}

}